.class final Lcom/burstly/lib/ui/Autorefresh;
.super Ljava/lang/Object;
.source "Autorefresh.java"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field private final mBview:Ljava/lang/ref/Reference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/Reference",
            "<",
            "Lcom/burstly/lib/ui/BurstlyView;",
            ">;"
        }
    .end annotation
.end field

.field private mServerSideSessionLength:I


# direct methods
.method constructor <init>(Lcom/burstly/lib/ui/BurstlyView;)V
    .locals 1
    .parameter "bView"

    .prologue
    .line 45
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 46
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/burstly/lib/ui/Autorefresh;->mBview:Ljava/lang/ref/Reference;

    .line 47
    return-void
.end method


# virtual methods
.method getServerSideSessionLength()I
    .locals 1

    .prologue
    .line 66
    iget v0, p0, Lcom/burstly/lib/ui/Autorefresh;->mServerSideSessionLength:I

    return v0
.end method

.method public run()V
    .locals 5

    .prologue
    .line 51
    iget-object v1, p0, Lcom/burstly/lib/ui/Autorefresh;->mBview:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/ui/BurstlyView;

    .line 52
    .local v0, bView:Lcom/burstly/lib/ui/BurstlyView;
    if-nez v0, :cond_0

    .line 58
    :goto_0
    return-void

    .line 55
    :cond_0
    sget-object v1, Lcom/burstly/lib/ui/BurstlyView;->sLog:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, v0, Lcom/burstly/lib/ui/BurstlyView;->mBurstlyViewId:Ljava/lang/String;

    const-string v3, "Sending autorefresh request..."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 56
    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->notifyAboutToRequest()V

    .line 57
    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->startRequest()V

    goto :goto_0
.end method

.method setServerSideSessionLength(I)V
    .locals 0
    .parameter "serverSideSessionLength"

    .prologue
    .line 75
    iput p1, p0, Lcom/burstly/lib/ui/Autorefresh;->mServerSideSessionLength:I

    .line 76
    return-void
.end method
